package com.tongtong.stsuserapi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 通知类型
 */
@Data
@ApiModel("通知")
@TableName("notification")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Notification implements Serializable {
	private static final long serialVersionUID = 23643L;

	@ApiModelProperty("ID主键")
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	private Long id;

	@ApiModelProperty("通知内容")
	private String content;
	@ApiModelProperty("通知类型(0为系统通知,1为用户通知,2为管理员通知)")
	private Integer type;
	@ApiModelProperty("逻辑删除变量 (0为删除,1为正常)")
	private Integer state;

	@ApiModelProperty("发送时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date sendTime;
	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;

	@ApiModelProperty("发送者id")
	private Long senderId;
	@ApiModelProperty("接收者id")
	private Long recipientId;
}
